<?php
/*
  $Id: whats_new.php,v 1.31 2003/02/10 22:31:09 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/

$configs_query = tep_db_query("select configuration_group_id, configuration_group_title from " . TABLE_CONFIGURATION_GROUP . " where visible = '1' order by sort_order");
?>

<!-- configuration box begin -->
    <tr>
	<td>
	<br>

<div id="date">Quick Customer Search</div>
<div id="inset">

<div class="moduletable">
<form name="search" action="<?php echo DIR_WS_ADMIN; ?>customers.php" method="get">
<input name="search" maxlength="20" alt="search" class="inputbox" type="text" size="17" value="search customers.."  onblur="if(this.value=='') this.value='search customers..';" onfocus="if(this.value=='search customers..') this.value='';" />
</form>
</div>

</div>
<div id="end"></div>

<div id="date"><?php $date = date("l, F j, Y"); echo $date;?></div>

<?php if (tep_admin_check_boxes('Everyone.php') == true) { ?>
<div id="submenu">
<ul class="mainmenu">
<li id="current" class="level2">
<a class="toggle">Your Account</a>
<ul class="stretcher">
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>logoff.php">Log Off!</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>admin_account.php">Edit Settings</a></li>
</ul>
</li>
</ul>
</div>
<?php } ?>

<?php if (tep_admin_check_boxes('Administrators.php') == true) { ?>
<div id="submenu">
<ul class="mainmenu">
<li id="current" class="level2">
<a class="toggle">Administrators</a>
<ul class="stretcher">
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>admin_members.php">Edit Admins & Groups</a></li>
<!--
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>admin_files.php">Edit File Access</a></li>
-->
</ul>
</li>
</ul>
</div>
<?php } ?>

<?php if (tep_admin_check_boxes('Products & Manufacturers.php') == true) { ?>
<div id="submenu">
<ul class="mainmenu">
<li id="current" class="level2">
<a class="toggle">Products & Manufacturers</a>
<ul class="stretcher">
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>categories.php">Product List</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>products_attributes.php">Products Attributes</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>manufacturers.php">Manufacturers</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>featured.php">Featured Products</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>products_multi.php">Multiple Products Manager</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>reviews.php">Reviews</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>specials.php">Specials</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>products_expected.php">Products Expected</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>latest_news.php">Latest News & Store Terms</a></li>
</ul>
</li>
</ul>
</div>
<?php } ?>

<?php if (tep_admin_check_boxes('Customers & Orders.php') == true) { ?>
<div id="submenu">
<ul class="mainmenu">
<li id="current" class="level2">
<a class="toggle">Customers & Orders</a>
<ul class="stretcher">
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>create_account.php">New Customer Account</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>create_order.php">Create New Orders</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>customers.php">Customers Details</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>orders.php">Orders Details</a></li>
</ul>
</li>
</ul>
</div>
<?php } ?>

<?php if (tep_admin_check_boxes('Reports and Sales.php') == true) { ?>
<div id="submenu">
<ul class="mainmenu">
<li id="current" class="level2">
<a class="toggle">Reports & Sales</a>
<ul class="stretcher">
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>stockview.php">Stock View</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>stats_products_viewed.php">Products Viewed</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>stats_products_purchased.php">Products Purchased</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>stats_customers.php">Customer Orders Total</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>stats_unsold_carts.php">Unsold Cart</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>stats_manufacturers_sales.php">Manufacturer Sales</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>stats_monthly_sales.php">Monthly Sales & Tax</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>stats_sales_report.php">Sales Report with Graphs</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>stats_sales_report2.php">Sales Report Advanced</a></li>
</ul>
</li>
</ul>
</div>
<?php } ?>

<?php if (tep_admin_check_boxes('Configuration & Settings.php') == true) { ?>
<div id="submenu">
<ul class="mainmenu">
<li id="current" class="level2">
<a class="toggle">Configuration & Settings</a>
<ul class="stretcher">
<?php
while ($configs = tep_db_fetch_array($configs_query)) {
$configs_name = ((strlen($configs['configuration_group_title']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($configs['configuration_group_title'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $configs['configuration_group_title']);
?>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>configuration.php?gID=<?php echo $configs['configuration_group_id']; ?>"><?php echo $configs_name; ?></a></li>
<?php
}
?>
</ul>
</li>
</ul>
</div>
<?php } ?>

<?php if (tep_admin_check_boxes('Payment & Shipping.php') == true) { ?>
<div id="submenu">
<ul class="mainmenu">
<li id="current" class="level2">
<a class="toggle">Payment & Shipping Modules</a>
<ul class="stretcher">
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>modules.php?set=payment">Payment Modules</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>modules.php?set=sts">STS</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>modules.php?set=shipping">Shipping Modules</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>modules.php?set=ordertotal">Order Total</a></li>
</ul>
</li>
</ul>
</div>
<?php } ?>

<?php if (tep_admin_check_boxes('Tools and Email.php') == true) { ?>
<div id="submenu">
<ul class="mainmenu">
<li id="current" class="level2">
<a class="toggle">Tools & Email</a>
<ul class="stretcher">
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>mail.php">Send Email</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>whos_online.php">Who's Online</a></li>
</ul>
</li>
</ul>
</div>
<?php } ?>

<?php if (tep_admin_check_boxes('Backup & Newsletter.php') == true) { ?>
<div id="submenu">
<ul class="mainmenu">
<li id="current" class="level2">
<a class="toggle">Backup & Newsletter</a>
<ul class="stretcher">
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>backup.php">Database Backup</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>newsletters.php">Newsletter Manager</a></li>
</ul>
</li>
</ul>
</div>
<?php } ?>

<?php if (tep_admin_check_boxes('administrator.php') == true) { ?>
<!-- alpha stage, do not run on a production website
<div id="submenu">
<ul class="mainmenu">
<li id="current" class="level2"><a class="toggle">Affiliates</a>
<ul class="stretcher">
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>affiliate_summary.php">Summary</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>affiliate_affiliates.php">Affiliates</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>affiliate_payment.php">Payment</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>affiliate_clicks.php">Clicks</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>affiliate_sales.php">Sales</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>affiliate_banners.php">Banners</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>affiliate_news.php">Affiliate News</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>affiliate_newsletters.php">Affiliate Newsletter</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>affiliate_contact.php">Contact</a></li>
</ul>
</li>
</ul>
</div>
-->
<?php } ?>

<?php if (tep_admin_check_boxes('Currencies & Taxes.php') == true) { ?>
<div id="submenu">
<ul class="mainmenu">
<li id="current" class="level2"><a class="toggle">Currencies & Taxes</a>
<ul class="stretcher">
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>countries.php">Countries</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>zones.php">Zones</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>geo_zones.php">Tax Zones</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>tax_classes.php">Tax Classes</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>tax_rates.php">Tax Rates</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>currencies.php">Currencies</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>languages.php">Languages</a></li>
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>orders_status.php">Orders Status</a></li>
</ul>
</li>
</ul>
</div>
<?php } ?>

<div id="end"></div>

	</td>
    </tr>
<!-- configuration box end -->					
